'babl-macros.h',
'babl-types.h',
'babl.h',
+ babl_version_h,
]
install_headers(babl_headers,
cpp_args: [ '-DLIBDIR="' + get_option('libdir') + '"', ],
link_with: [ babl_base, ],
dependencies: [ math, thread, dl, ],
+ install: true,
+ version: so_version,
)
--- /dev/null
+
+graphic_files = [
+ 'babl-16x16',
+ 'babl-48x48',
+ 'babl-a4poster',
+]
+
+graphic_files_install = [
+ files('index.html'),
+]
+
+foreach file : graphic_files
+ sizeinfo = (
+ file.contains('a4poster')
+ ? [ '-w', '256', ]
+ : []
+ )
+
+ graphic_files_install += custom_target(file,
+ input : [ file + '.svg' ],
+ output: [ file + '.png' ],
+ command: [
+ rsvg_convert,
+ sizeinfo,
+ '-o', '@OUTPUT@',
+ '@INPUT@',
+ ],
+ install: false,
+ )
+endforeach
--- /dev/null
+subdir('graphics')
+
+host = 'pippin.gimp.org'
+location= 'public_html/babl'
+scptarget = host + ':' + location + '/'
+
+
+# The patterns used for html creation in the babl build system
+# is very small, and should probably be documented in a tutorial.
+
+index_static_html = configure_file(
+ input : 'index-static.html.in',
+ output: 'index-static.html',
+ configuration: conf,
+)
+
+index_html = custom_target('index.html',
+ input : [
+ index_static_html,
+ '../AUTHORS',
+ '../TODO',
+ '../NEWS',
+ ],
+ output: [ 'index.html', ],
+ command: [
+
+ ],
+)
+
+# push_web_root = custom_target('push_web_root',
+# input : [
+# index_html,
+# index_static_html,
+# 'babl.css',
+# ],
+# output: [ 'push_web_root' ],
+# command: [
+# 'scp',
+# '@INPUT@',
+# scptarget,
+# ],
+# )
+# push_web_graphics = custom_target('push_web_graphics',
+# input : [
+# graphic_files_install,
+# ],
+# output: [ 'push_web_graphics' ],
+# command: [
+# 'scp',
+# '@INPUT@',
+# scptarget + 'graphics/',
+# ],
+# )
+#
+# web = custom_target('web',
+# input: [
+# push_web_root,
+# push_web_graphics
+# ],
+# output: [],
+# command: [],
+# )
\ No newline at end of file
link_with: [ babl, ],
dependencies: [ math, thread, ],
name_prefix: '',
- install: false,
+ install: true,
+ install_dir: join_paths(get_option('libdir'), lib_name),
)
endforeach
api_version = '@0@.@1@'.format(major_version, minor_version)
lib_version = '@0@:@1@:@2@'.format(lt_current, lt_revision, lt_age)
-lib_name = meson.project_name() + '-' + meson.project_version()
+so_version = '@0@.@1@.@2@'.format(lt_current_minus_age, lt_current, interface_age)
+lib_name = meson.project_name() + '-' + api_version
stability_version_number = (major_version != 0 ? minor_version : micro_version)
stable = (stability_version_number % 2 == 0)
conf.set10('BABL_UNSTABLE', not stable)
-conf.set_quoted('BABL_MAJOR_VERSION', '@0@'.format(major_version))
-conf.set_quoted('BABL_MINOR_VERSION', '@0@'.format(minor_version))
-conf.set_quoted('BABL_MICRO_VERSION', '@0@'.format(micro_version))
+conf.set ('BABL_MAJOR_VERSION', '@0@'.format(major_version))
+conf.set ('BABL_MINOR_VERSION', '@0@'.format(minor_version))
+conf.set ('BABL_MICRO_VERSION', '@0@'.format(micro_version))
conf.set_quoted('BABL_INTERFACE_AGE', '@0@'.format(interface_age))
conf.set_quoted('BABL_BINARY_AGE', '@0@'.format(binary_age))
conf.set_quoted('BABL_VERSION', '@0@'.format(version))
conf.set_quoted('BABL_CURRENT_MINUS_AGE','@0@'.format(lt_current_minus_age))
conf.set_quoted('BABL_LIBRARY', '@0@'.format(lib_name))
-conf.set_quoted('WEBSITE_HOST', 'pippin.gimp.org')
-conf.set_quoted('WEBSITE_LOCATION', 'public_html/babl')
-
################################################################################
# Host system detection
subdir('tests')
subdir('tools')
if get_option('with-docs')
- # subdir('docs')
+ subdir('docs')
endif